home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / Examples / Main.cc < prev    next >
C/C++ Source or Header  |  1993-06-14  |  546b  |  34 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10. #include <iostream.h>
  11.  
  12. #ifndef COMMON_H_
  13. #include <common.h>
  14. #endif
  15.  
  16. #ifndef PROCESS_H_
  17. #include <Process.h>
  18. #endif
  19.  
  20. #ifndef MACHINESHOP_H_
  21. #include "MachineShop.h"
  22. #endif
  23.  
  24.  
  25. int main()
  26. {
  27.     Thread_Type::Initialize(); // Initialize the threads package.
  28.  
  29.     MachineShop m; // Start up the real main body of the simulation.
  30.     m.Await(); // Suspend main's thread (NOTE: this MUST be done by all applications.)
  31.  
  32.     return 0;
  33. }
  34.